<?php

namespace plugins\statistics\controller;

use cmf\controller\PluginAdminBaseController;
use think\Db;

/**
 * Class AdminIndexController
 * @package plugins\statistics\controller
 * @adminMenuRoot(
 *     'name'   =>'数据统计',
 *     'action' =>'default',
 *     'parent' =>'',
 *     'display'=> true,
 *     'order'  => 0,
 *     'icon'   =>'dashboard',
 *     'remark' =>'数据统计入口'
 * )
 */
class AdminIndexController extends PluginAdminBaseController
{

    protected function initialize()
    {
        parent::initialize();
        $this->config = $this->getPlugin()->getConfig();
    }

    /**
     * 统计一
     * @adminMenu(
     *     'name'   => '统计一',
     *     'parent' => 'default',
     *     'display'=> true,
     *     'hasView'=> true,
     *     'order'  => 10000,
     *     'icon'   => '',
     *     'remark' => '统计一',
     *     'param'  => ''
     * )
     */
    public function dashboard_one()
    {
        return $this->fetch('/dashboard_one');
    }

        /**
     * 统计二
     * @adminMenu(
     *     'name'   => '统计二',
     *     'parent' => 'default',
     *     'display'=> true,
     *     'hasView'=> true,
     *     'order'  => 10000,
     *     'icon'   => '',
     *     'remark' => '统计二',
     *     'param'  => ''
     * )
     */
    public function dashboard_two()
    {
        return $this->fetch('/dashboard_two');
    }

        /**
     * 统计三
     * @adminMenu(
     *     'name'   => '统计三',
     *     'parent' => 'default',
     *     'display'=> true,
     *     'hasView'=> true,
     *     'order'  => 10000,
     *     'icon'   => '',
     *     'remark' => '统计三',
     *     'param'  => ''
     * )
     */
    public function dashboard_three()
    {
        return $this->fetch('/dashboard_three');
    }

        /**
     * 统计四
     * @adminMenu(
     *     'name'   => '统计四',
     *     'parent' => 'default',
     *     'display'=> true,
     *     'hasView'=> true,
     *     'order'  => 10000,
     *     'icon'   => '',
     *     'remark' => '统计四',
     *     'param'  => ''
     * )
     */
    public function dashboard_four()
    {
        return $this->fetch('/dashboard_four');
    }

        /**
     * 统计五
     * @adminMenu(
     *     'name'   => '统计五',
     *     'parent' => 'default',
     *     'display'=> true,
     *     'hasView'=> true,
     *     'order'  => 10000,
     *     'icon'   => '',
     *     'remark' => '统计五',
     *     'param'  => ''
     * )
     */
    public function dashboard_five()
    {
        return $this->fetch('/dashboard_five');
    }

        /**
     * 统计六
     * @adminMenu(
     *     'name'   => '统计六',
     *     'parent' => 'default',
     *     'display'=> true,
     *     'hasView'=> true,
     *     'order'  => 10000,
     *     'icon'   => '',
     *     'remark' => '统计六',
     *     'param'  => ''
     * )
     */
    public function dashboard_six()
    {
        return $this->fetch('/dashboard_six');
    }

        /**
     * 统计七
     * @adminMenu(
     *     'name'   => '统计七',
     *     'parent' => 'default',
     *     'display'=> true,
     *     'hasView'=> true,
     *     'order'  => 10000,
     *     'icon'   => '',
     *     'remark' => '统计七',
     *     'param'  => ''
     * )
     */
    public function dashboard_seven()
    {
        return $this->fetch('/dashboard_seven');
    }

}
